// 这里是注册插件的统一入口
import PageTools from '@/components/pageTools'
import UploadExcel from '@/components/UploadExcel/index.vue'
import TreeList from '@/components/TreeList/index.vue'
import UploadPhoto from '@/components/UploadPhoto'
import PhotoQCcode from '@/components/PhotoQCcode/PhotoQCcode.vue'

console.log('我是插件', PhotoQCcode)
const components = [PageTools, UploadExcel, TreeList, UploadPhoto, PhotoQCcode]
export default {
  install(Vue) {
    components.forEach(cp => {
      Vue.component(cp.name, cp)
    })
  }
}
